﻿using System;
using System.Data.Objects;
using System.Linq;
using WebEntities;

namespace com.subb.WebFramework
{
    public class MenuItemQuery
    {
        public static readonly Func<SugardbEntities, string, int, FW_MemberMuItem> GetMemberMuItemQuery =
            CompiledQuery.Compile((SugardbEntities context, string gid, int itemId) =>
                context.FW_MemberMuItem.FirstOrDefault(c => c.GID.Equals(gid, StringComparison.CurrentCultureIgnoreCase) && c.MuItemID == itemId));
    }
}
